﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>WeiboQPanel</title>
    <link href="../../Content/WeiboQPanel.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <script type="text/javascript">

        function setContent(str) {//过滤所有字符，只保留汉字   
            str = str.replace(/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?|\r\n]/g, ""); //去除行尾空白
            return str;
        } 
        function SetFrameUrl(tips) {
            var Qiframe = document.getElementById("WeiboQ");
            if (Qiframe != null) {
                tips = setContent(tips);
                var url = "http://v.t.qq.com/wall/index.php?t=" + encodeURI(tips) + "&a=c140646a1bf8464f9da4a037ece3aab8&w=0&h=439&o=7&c=4&cs=9E9E9E_F0F0F0_7D7D7D_919191_2A6EF7_4F736D";
                document.getElementById("WeiboQ").src = url;
            }
        }
    </script>
    <div>
        <%if ((bool)ViewData["IsUserLogin"])
          { %>
        <div style="height: 439px">
            <iframe id="WeiboQ" frameborder="0" scrolling="no" width="100%" height="100%"></iframe>
        </div>
        <%} %>
    </div>
</body>
</html>
